import java.util.Arrays;

/**
 * @USER: Administrator
 * @DATE: 2024/9/28 上午8:01
 * @VERSION: 1.0.0
 */
public class LC2974 {
    public static void main(String[] args) {

    }

    public int[] numberGame(int[] nums) {
        Arrays.sort(nums);
        for (int i = 0; i < nums.length; i+=2) {
            int temp = nums[i];
            nums[i]=nums[i+1];
            nums[i+1]=temp;
        }
        return nums;
    }

}
